package com.wolf.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wolf.common.utils.PageUtils;
import com.wolf.gulimall.ware.entity.WareInfoEntity;
import com.wolf.gulimall.ware.vo.FareVo;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 仓库信息
 *
 * @author wolfmoon
 * @email wolfmoon@gmail.com
 * @date 2022-11-15 18:10:14
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);


    /**
     * 根据用户收货地址ID计算运费
     * @param addrId 用户收货地址ID
     * @return 运费
     */
    FareVo getFare(Long addrId);
}

